package chapter14.section4;

//程序14-8b：MainFrame

import javax.swing.*;

public class MainFrame extends JFrame {
    public MainFrame(String title, int width, int height) {
        super(title);
        this.setSize(width, height);
        this.setContentPane(new LoginPanel(this));
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.pack();
    }

    public static void main(String[] args) {
        MainFrame frm = new MainFrame("ATM服务系统", 800, 600);
        frm.setVisible(true);
    }
}